<template>
  <div>
    <banner :banner="banner"></banner>
  </div>
</template>

<script>
import banner from "@/components/banner";
import axios from "axios";
export default {
  name: "",
  components: { banner },
  data() {
    return {
      banner: [],
    };
  },
  created() {
    axios(
      "https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata"
    ).then((res) => {
      this.banner = res.data.message;
      console.log(res);
    });
  },
  mounted() {},
  methods: {},
};
</script>
<style scoped lang="scss"></style>
